package org.example.controller;

import org.example.service.IFooService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2020/3/24
 */
@RestController
public class BarController {

    @Autowired
    private IFooService fooService;

    @GetMapping("/bar/hello")
    public String hello() {
        return fooService.hello();
    }

    @GetMapping("/bar/notwork")
    public String notwork() {
        return fooService.notwork();
    }

    @GetMapping("/bar/exhaust")
    public String exhaust() {
        return fooService.exhaust();
    }
}
